//
//  HMDatePicker.h
//  01-网易彩票
//
//  Created by SZSYKT_iOSBasic_2 on 16/2/20.
//  Copyright © 2016年 heima. All rights reserved.
//

#import <UIKit/UIKit.h>
@class HMDatePicker;
@protocol HMDatePickerDelegate <NSObject>
@optional
- (void)datePickerDidValueChanged:(HMDatePicker *)datePicker;
@end

@interface HMDatePicker : UIView

// 日期选择器
@property (nonatomic, weak,readonly) UIDatePicker *datePicker;
/**
 *  代理属性
 */
@property (nonatomic, weak) id<HMDatePickerDelegate> delegate;
/**
 *  记录叫出日期选择器的对象
 */
@property (nonatomic, strong) id focusObject;
/**
 *  记录弹出日期选择器的时间
 */
@property (nonatomic, strong) NSDate *currentDate;

/**
 *  创建日期选中器
 */
+(instancetype)datePicker;
/**
 *  显示
 */
- (void)show;

@end
